home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 002a / be310.zip / HEXKEY.CHS < prev    next >
Text File  |  1993-06-01  |  468b  |  15 lines

  1. /* CHESS FUNCTION(S): HEXKEY.CHS -- standalone program
  2. /*              DATE: 3/1/93
  3. /*            AUTHOR: C. Schanck
  4. /*
  5. /*       DESCRIPTION:   this routine functions the same as HEXKEY.COM;
  6. /* it displays the hex and decimal value of a keystroke.  
  7. {     
  8.    int i;
  9.    msg("Press any key ... (Escape exits)");
  10.    i=getkey();
  11.    while((i%256)!=27){
  12.       msg("Value is %04lx [%06ld] ... Press another key ... (Escape exits)",i,i)
  13.       i=getkey();
  14.    }
  15. }